﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NPC模块结构
{
    class ShopType:NPC
    {
        private string _item;
        public ShopType(string name , NPCType type,string item) : base(name , type)
        {
            this.Item = item;
        }

        public string Item { get => _item; set => _item = value; }

        public override void Speak()
        {
            Console.WriteLine("类型{0}，{1}，售卖商品{2}",base.NPCType,base.Name,this.Item);
        }
    }
}
